import request from "@/utils/request";
export default{
    getUserBasicProfile(){
        return request({
            url:"/mobile/getBasicProfile",
            method:"get"
        })
    },
    logout(){
        return request({
            url:"/quit",
            method:"get"
        })
    },
    getUserProfile(){
        return request({
            url:"/mobile/getUserProfile",
            method:"get"
        })
    },
    updateUserProfile(data){
        return request({
            url:"/mobile/updateUserProfile",
            method:"post",
            data
        })
    },
    getMessageCount(){
        return request({
            url:"messages/count",
            method:"get"
        })
    },
    getUserMessage(){
        return request({
            url:"messages/user",
            method:"get"
        })
    },
    readUserMessage(){
        return request({
            url:"messages/read",
            method:"get"
        })
    },
    getMyEvents(){
        return request({
            url:"events/user",
            method:"get"
        })
    },
    scoreEvent(data){
        return request({
            url:"feedbacks",
            method:"post",
            data
        })
    },
    registerEvent(eventId){
        return request({
            url:`registrations/${eventId}`,
            method:"post"
        })
    },
    cancelRegistration(eventId){
        return request({
            url:`registrations/cancel/${eventId}`,
            method:"put"
        })
    }
}